//
//  CompetitorButton.m
//  YunGui
//
//  Created by HanenDev on 16/5/3.
//  Copyright © 2016年 hanen. All rights reserved.
//

#import "CompetitorButton.h"

@implementation CompetitorButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
#pragma mark - 设置按钮内部图片和文字的frame
- (CGRect)imageRectForContentRect:(CGRect)contentRect
{
    CGFloat W = 16.0 ;
    //    CGFloat H = contentRect.size.height;
    return CGRectMake(0 , contentRect.size.height / 2.0f - W/2.0f, W, W);
    
}
//
- (CGRect)titleRectForContentRect:(CGRect)contentRect
{
    CGFloat W1 = contentRect.size.width;
    CGFloat H = contentRect.size.height;
    return CGRectMake( 25, 0, W1, H);
    
}

@end
